package kr.co.mustgo.domain.membership;

import java.io.Serializable;


public class Membership implements Serializable{

	private String Id;
	private String password;
	private String name;
	private int age;
	private String gender;
	private String grade;
	private String zipCode;
	private String address;
	private String birthDate;
	private String email;
	private String homePhone;
	private String cellPhone;
	private String SNSReception;
	private String emailReception;
	
	public Membership() {
		super();
	}

	public Membership(String id, String password, String name, int age,
			String gender, String grade, String zipCode, String address,
			String birthDate, String email, String homePhone, String cellPhone,
			String sNSReception, String emailReception) {
		super();
		Id = id;
		this.password = password;
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.grade = grade;
		this.zipCode = zipCode;
		this.address = address;
		this.birthDate = birthDate;
		this.email = email;
		this.homePhone = homePhone;
		this.cellPhone = cellPhone;
		SNSReception = sNSReception;
		this.emailReception = emailReception;
	}

	public String getId() {
		return Id;
	}

	public void setId(String id) {
		Id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(String birthDate) {
		this.birthDate = birthDate;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	public String getCellPhone() {
		return cellPhone;
	}

	public void setCellPhone(String cellPhone) {
		this.cellPhone = cellPhone;
	}

	public String getSNSReception() {
		return SNSReception;
	}

	public void setSNSReception(String sNSReception) {
		SNSReception = sNSReception;
	}

	public String getEmailReception() {
		return emailReception;
	}

	public void setEmailReception(String emailReception) {
		this.emailReception = emailReception;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((Id == null) ? 0 : Id.hashCode());
		result = prime * result
				+ ((SNSReception == null) ? 0 : SNSReception.hashCode());
		result = prime * result + ((address == null) ? 0 : address.hashCode());
		result = prime * result + age;
		result = prime * result
				+ ((birthDate == null) ? 0 : birthDate.hashCode());
		result = prime * result
				+ ((cellPhone == null) ? 0 : cellPhone.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result
				+ ((emailReception == null) ? 0 : emailReception.hashCode());
		result = prime * result + ((gender == null) ? 0 : gender.hashCode());
		result = prime * result + ((grade == null) ? 0 : grade.hashCode());
		result = prime * result
				+ ((homePhone == null) ? 0 : homePhone.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result
				+ ((password == null) ? 0 : password.hashCode());
		result = prime * result + ((zipCode == null) ? 0 : zipCode.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Membership other = (Membership) obj;
		if (Id == null) {
			if (other.Id != null)
				return false;
		} else if (!Id.equals(other.Id))
			return false;
		if (SNSReception == null) {
			if (other.SNSReception != null)
				return false;
		} else if (!SNSReception.equals(other.SNSReception))
			return false;
		if (address == null) {
			if (other.address != null)
				return false;
		} else if (!address.equals(other.address))
			return false;
		if (age != other.age)
			return false;
		if (birthDate == null) {
			if (other.birthDate != null)
				return false;
		} else if (!birthDate.equals(other.birthDate))
			return false;
		if (cellPhone == null) {
			if (other.cellPhone != null)
				return false;
		} else if (!cellPhone.equals(other.cellPhone))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (emailReception == null) {
			if (other.emailReception != null)
				return false;
		} else if (!emailReception.equals(other.emailReception))
			return false;
		if (gender == null) {
			if (other.gender != null)
				return false;
		} else if (!gender.equals(other.gender))
			return false;
		if (grade == null) {
			if (other.grade != null)
				return false;
		} else if (!grade.equals(other.grade))
			return false;
		if (homePhone == null) {
			if (other.homePhone != null)
				return false;
		} else if (!homePhone.equals(other.homePhone))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (zipCode == null) {
			if (other.zipCode != null)
				return false;
		} else if (!zipCode.equals(other.zipCode))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Membership [Id=" + Id + ", password=" + password + ", name="
				+ name + ", age=" + age + ", gender=" + gender + ", grade="
				+ grade + ", zipCode=" + zipCode + ", address=" + address
				+ ", birthDate=" + birthDate + ", email=" + email
				+ ", homePhone=" + homePhone + ", cellPhone=" + cellPhone
				+ ", SNSReception=" + SNSReception + ", emailReception="
				+ emailReception + "]";
	}
	
}//end class
